package day19.homework;

public class test5 {
    public static void main(String[] args) {
        String str1 = "hello"; 
        String str2 = "hello"; 
        String str3 = new String("hello"); 
        String str4 = new String("hello"); 
        String str5 = "hellohello"; 
        String str6 = str1 + str2; 
        System.out.println(str1 == str2); 
        System.out.println(str2 == str3); 
        System.out.println(str3 == str4); 
        System.out.println(str2.equals(str3)); 
        System.out.println(str3.equals(str4)); 
        System.out.println(str5.equals(str6)); 
        System.out.println(str5 == str6);
    }

}
